import tool from './tool';


const api = {};
const url = window.url;

// 首页登录
api.agentLogin = (params,callback) => { return tool.post(url + '/shop/login/agentLogin', params ,callback); };
// 获取首页信息
api.getIndexInfo = (params,callback) => { return tool.post(url + '/shop/login/getIndexInfo', params ,callback); };

// 获取银行卡信息
api.getChooseBankCardList = (params,callback) => { return tool.post(url + '/shop/outsourcing/getChooseBankCardList', params ,callback); };

//提交提现表单
api.doWithdrawal = (params,callback) => { return tool.post(url + '/shop/outsourcing/doWithdrawal', params ,callback); };

// 获取提取金额记录
api.getWithdrawalLogList = (params,callback) => { return tool.post(url + '/shop/outsourcing/getWithdrawalLogList', params ,callback); };

// 获取充值金额记录
api.getPaymentLogList = (params,callback) => { return tool.post(url + '/shop/outsourcing/getPaymentLogList', params ,callback); };

// 补单
api.getCallBack = (params,callback) => { return tool.post(url + '/shop/outsourcing/callBack', params ,callback); };
export default api;